package com.waves.pay.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.waves.core.web.domain.entities.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "订单表", description = "")
@TableName("orders")
@Data
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long status;
    private Long taskId;
    private String subject;
    private String tradeStatus;
    private String tradeNo;
    private String outTradeNo;
    private Double totalAmount;
    private String buyerId;
    private String gmtPayment;
    private String buyerPayAmount;
    private Long receiveId;


    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private Long createdBy;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Long createdTime;

    @TableField(value = "created_name", fill = FieldFill.INSERT)
    private String createdName;

    @TableField(value = "updated_by")
    private Long updatedBy;

    @TableField(value = "updated_time")
    private Long updatedTime;

    @TableField(value = "updated_name")
    private String updatedName;

    @TableField("del_flag")
    @TableLogic(delval = "id")
    private Integer delFlag;


}
